Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check variant before version to decide rpm target and packager closes #7666 #7667

Merged
merged 1 commit into from
Jun 5, 2023

Conversation

adrecord
Copy link
Contributor

@adrecord adrecord commented Jun 2, 2023

Proposed Changes

Check the ID and VARIANT_ID before relying on just the VERSION_ID from /etc/os-release. This is needed to disambiguate fedora from fedora coreos, where the VERSION_IDs (from /etc/os-release) will be the same, but if it's the coreos variant it should use rpm-ostree instead of yum.

Types of Changes

Bugfix

Verification

I tested this change on fcos 38, as listed in #7666, and it fixed the problem. I did not retest on other distros, but it makes sense that having the id/variant check take precedence over the version would not impact the other distros, as non-coreos distros will still fall thru to the subsequent conditionals.

Testing

Linked Issues

#7666

User-Facing Change

NONE

Further Comments

small change

@adrecord adrecord requested a review from a team as a code owner June 2, 2023 05:13
@adrecord
Copy link
Contributor Author

adrecord commented Jun 2, 2023

this pr closes #7666

@adrecord adrecord changed the title check variant before version to decide rpm target and packager check variant before version to decide rpm target and packager closes #7666 Jun 2, 2023
@brandond
Copy link
Member

brandond commented Jun 2, 2023

Thanks! Don't forget to sign-off your commit for DCO.

Signed-off-by: Andy Record <adrecord@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants